package com.bilibili.movies.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bilibili.movies.entity.UserCollection;
import com.bilibili.movies.mapper.UserCollectionMapper;
import com.bilibili.movies.service.Interface.IUserCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LBy
 * @since 2024-06-06
 */
@Service
public class UserCollectionServiceImpl extends ServiceImpl<UserCollectionMapper, UserCollection> implements IUserCollectionService {
    @Autowired
    UserCollectionMapper collectionMapper;
    @Override
    public void Delete(UserCollection userCollection) {
        collectionMapper.deleteByuserIdAndmovieId(userCollection.getUserId(),userCollection.getMovieId());
    }
}
